#include <stdio.h>
int main()
{
	for (int unm = 1; unm <= 100; unm++)
		if (unm % 3 == 0)
			printf("%d\n", unm);
	return 0;
}